package com.otherTest.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * @Description:
 * @author: conceit
 * @Date: 2018/7/18 0018
 */

@Getter
@AllArgsConstructor
public enum AgainEnum {

    STATIC(0,"静态奖"),
    PARENT(1,"PARENT"),
    LEADER(2, "领导奖"),
    TEAM(3,"团队奖"),
    INVITE(4,"直推奖"),
    FEE(5,"钱包互转费");


    public int key;
    public String explain;


    public static AgainEnum keyOf(int key) {
        for (AgainEnum againEnum : values()) {
            if (againEnum.key == key) {
                return againEnum;
            }
        }
        throw new IllegalArgumentException("没有匹配的常量 [" + key + "]");
    }









}
